/*typesize.c -- 打印类型大小*/
#include "stdio.h"

int main(void){
    /*C99为类型大小提供%zd转换说明*/
    printf("int类型的大小:%zd\r\n",sizeof(int));
    printf("char类型的大小:%zd\r\n",sizeof(char));
    printf("long类型的大小:%zd\r\n",sizeof(long));
    printf("long long类型的大小:%zd\r\n",sizeof(long long));
    printf("long double类型的大小:%zd\r\n",sizeof(long double));
}

